package com.whu;

import com.whu.UVAProtocol.UVAServer;
import com.whu.UVAProtocol.UVAServerInitializer;
import com.whu.aircraft.PictureInfo;
import com.whu.service.impl.PictureService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.util.Date;

@SpringBootApplication
@EnableAsync
@EnableScheduling
@EnableTransactionManagement
public class Main {
//    @Value("${uva-server.port}")
    public static int PORT=6669;//无人机TCP连接服务端端口号

    public static void main(String[] args) throws InterruptedException {
        ConfigurableApplicationContext context = SpringApplication.run(Main.class, args);
        UVAServer uvaServer = new UVAServer(PORT);
        uvaServer.run();

    }

}
